﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.SceneManagement;

public class GameOver : MonoBehaviour
{
    // Start is called before the first frame update
    public GameObject lostImg;
    public GameObject winImg;
    public Button backBtn;
    void Start()
    {

        backBtn.onClick.AddListener(BackToStartScene);
    }
    public void SetStatus(bool win){

        lostImg.SetActive(!win);
        winImg.SetActive(win);

    }
    void BackToStartScene(){

        SceneManager.LoadScene("Scenes/Game/StartGame");
    }

    // Update is called once per frame
    void Update()
    {

    }
}
